package api.bean;

import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;

public interface API_TT_FeedBean {
    /**
     * 视频类型
     */
    public static final int MODE_VIDEO = 5;
    /**
     * 以下为图片类型
     */
    public static final int MODE_GROUP_IMG = 4;
    public static final int MODE_LARGE_IMG = 3;
    public static final int MODE_SMALL_IMG = 2;

    String getImageUrl();

    /**
     * 获取广告类型 根据MODE_VIDEO，MODE_GROUP_IMG，MODE_LARGE_IMG，MODE_SMALL_IMG判断
     * @return
     */
    int getImageMode();

    /**
     * 获取视频广告view
     * @return
     */
    View getVideoView();

    String getTitle();

    String getDescription();

    String getSource();


    void setVideoListener(VideoListener listener);

    void registerViewForInteraction(@NonNull ViewGroup var1, @NonNull View var2, InteractionListener listener);

    interface InteractionListener {
        void onClicked();

        void onCreativeClick();

        void onShow();
    }

    interface VideoListener {
        void onVideoLoad();
        void onVideoError(int var1, int var2);
        void onVideoStartPlay();
        void onVideoPaused();
        void onVideoContinuePlay();
        void onVideoComplete();
    }
}
